package com.yuwen.yuwenRPC.fault.tolerant;

/**
 * @ClassNameFailSafeTolerantStrategy
 * @Description TODO
 * @Author钰玟
 * @Date2025/4/6 下午1:50
 * @Version 1.0
 **/


import com.yuwen.yuwenRPC.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * 静默处理容错
 */
@Slf4j
public class FailSafeTolerantStrategy implements  TolerantStrategy{
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        log.info("静默处理异常",e);
        return new RpcResponse();
    }
}
